package abstraction.refinedAbstraction;

import abstraction.Shape;
import implementor.Color;
// 扩充抽象类 - 方形
public class Square extends Shape {
    public Square(Color color) {
        super(color);
    }

    @Override
    public void draw() {
        System.out.print("Drawing Square: ");
        color.applyColor(); // 委托给颜色实现
    }
}